package com.guchenbo.schedule.config;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author guchenbo
 * @date 2021/4/13
 */
//@EnableAspectJAutoProxy
@Aspect
@Component
public class DemoAop {

  @Pointcut("execution(* com.guchenbo.schedule.biz.UserMgr.hello())")
  public void pointcut(){}

  @Before("pointcut()")
  public void before() {
    System.out.println("demo aop");
  }
}
